package com.yfp.machine.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotNull;

import java.io.Serializable;

/**
 * 广告资源vo
 *
 * 
 * @date 2023/12/28
 */
@Tag(name = "广告资源")
public class AdResourceVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "广告id")
    private String adId;

    /**
     * 广告名称
     */
    @Schema(title = "广告名称")
    @NotNull(message = "广告名称不能为空")
    private String name;

    /**
     * 备注
     */
    @Schema(title = "备注")
    private String remark;
    /**
     * 资源类型 1：图片 2：视频
     */
    @Schema(title = "资源类型 1：图片 2：视频")
    @NotNull(message = "资源类型不能为空")
    private Integer resourceType;
    /**
     * 图片id/视频id
     */
    @Schema(title = "图片id/视频id")
    @NotNull(message = "资源id不能为空")
    private String resourceId;

    @Schema(title = "视频时长")
    private String duration;

    @Schema(title = "是否删除")
    private Boolean isDelete;

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public String getAdId() {
        return adId;
    }

    public void setAdId(String adId) {
        this.adId = adId;
    }

    public Integer getResourceType() {
        return resourceType;
    }

    public void setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
